package week7;

public class BookS {
    protected int price, pages;
    protected String bookname, author, press, keyword;
    protected int wordperpage;

    public BookS(String bn, String at, int pg, int pri, String key){
        bookname = bn;
        author = at;
        pages = pg;
        price = pri;
        keyword = key;
    }

    public void setPages(int p){
        pages = p;
    }
    public int getPages(){
        return pages;
    }

    public void setBookname(String name){
        bookname = name;
    }
    public String getBookname() {
        return bookname;
    }

    public void setAuthor(String auth){
        author = auth;
    }
    public String getAuthor() {
        return author;
    }

    public void setPrice(int price) {
        this.price = price;
    }
    public int getPrice() {
        return price;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }
    public String getKeyword() {
        return keyword;
    }

    @Override
    public String toString() {
        return "\tBooknme: " + bookname + "\n\tAuthor: " + author + "\n\tPages: " + pages + "\n\tPrice: " + price + "\n\tType: " + keyword;
    }

}
